package cn.ibizlab.odoo.core.odoo_website.service;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.util.Collection;
import java.math.BigInteger;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import cn.ibizlab.odoo.core.odoo_website.domain.Website_menu;
import cn.ibizlab.odoo.core.odoo_website.filter.Website_menuSearchContext;

/**
 * 实体[Website_menu] 服务对象接口
 */

public interface IWebsite_menuService{
     boolean update(Website_menu website_menu) ;
     Website_menu get(Integer id) ;
     Website_menu get(Website_menu website_menu) ;
     boolean remove(Integer id) ;
     void createBatch(List<Website_menu> website_menus, int batchSize) ;
     void removeBatch(Collection<? extends Serializable> idList, int batchSize) ;
     void updateBatch(List<Website_menu> website_menus, int batchSize) ;
     boolean create(Website_menu website_menu) ;

    /**
     * 查询集合 默认查询
     */
    Page<Website_menu> searchDefault(Website_menuSearchContext context) ;

    /**
     * 根据用户查询
     */
     Page<Website_menu> selectByOdoo_create(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Website_menu> selectByOdoo_write(Integer id) ;

    /**
     * 根据网站菜单查询
     */
     Page<Website_menu> selectByOdoo_parent(Integer id) ;

    /**
     * 根据页查询
     */
     Page<Website_menu> selectByOdoo_page(Integer id) ;

    /**
     * 转换ClientModel为Domain
     */
    public Website_menu convert2Domain(cn.ibizlab.odoo.core.client.model.Iwebsite_menu model ,Website_menu domain);

    /**
     * 转换Domain为ClientModel
     */
    public cn.ibizlab.odoo.core.client.model.Iwebsite_menu convert2Model(Website_menu domain , cn.ibizlab.odoo.core.client.model.Iwebsite_menu model);

}
